package com.chesnutconsulting.reports;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ReportSystemMenu {

	Map<String, List<ReportCategory>> titleCategoryMap = new HashMap<String, List<ReportCategory>>();

	public void addCategory(String title, ReportCategory category) {
		List<ReportCategory> reportCategories = titleCategoryMap.get(title);
		if (reportCategories != null) {
			reportCategories.add(category);
		} else {
			List<ReportCategory> rCategories = new ArrayList<ReportCategory>();
			rCategories.add(category);
			
			titleCategoryMap.put(title, rCategories);
		}
	}

	public Map<String, List<ReportCategory>> getTitleCategoryMap() {
		return titleCategoryMap;
	}
}
